package com.eu.controller;

import java.util.LinkedHashMap;
import java.util.Map;

public class User {
	
	public static Map<String, User> usersCache = new LinkedHashMap<String, User>();
	
	static {
		User u1 = new User("陈勇楷", "金胖子", "唐老板", "employ", "新宇");
		User u2 = new User("陈楷",     "金胖子", "唐老板", "employ", "新宇");
		User u3 = new User("金胖子",     "李鹏", "唐老板", "manager", "新宇");
		
		User u4 = new User("康师傅", "郑老大", "唐老板", "employ", "新宇");
		User u5 = new User("郑老大", "李德明", "唐老板", "manager", "新宇");
		
		User u6 = new User("李鹏",     "唐老板", "唐老板", "manager", "新宇");
		User u7 = new User("李德明", "唐老板", "唐老板", "manager", "新宇");
		
		User u8 = new User("吴静",     "李德明", "唐老板", "kaoqin", "新宇");
		User u9 = new User("唐老板", "唐老板", "唐老板", "boss", "新宇");
		
		usersCache.put(u1.getName(), u1);
		usersCache.put(u2.getName(), u2);
		usersCache.put(u3.getName(), u3);
		usersCache.put(u4.getName(), u4);
		usersCache.put(u5.getName(), u5);
		usersCache.put(u6.getName(), u6);
		usersCache.put(u7.getName(), u7);
		usersCache.put(u8.getName(), u8);
		usersCache.put(u9.getName(), u9);
	}
	
	private String name;
	
	private String leader;
	
	private String boss;
	
	private String role;
	
	private String org;
	
	public User() {}

	public User(String name, String leader, String boss, String role, String org) {
		super();
		this.name = name;
		this.leader = leader;
		this.boss = boss;
		this.role = role;
		this.org = org;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getBoss() {
		return boss;
	}

	public void setBoss(String boss) {
		this.boss = boss;
	}

	@Override
	public String toString() {
		return "User [name=" + name + ", leader=" + leader + ", boss=" + boss + ", role=" + role + ", org=" + org + "]";
	}
	
}